package cn.com.cifi.mars.mapper.mars;

import cn.com.cifi.mars.entity.PanoplanBuildPlan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 楼栋计划表 Mapper 接口
 * </p>
 *
 * @author yyd
 * @since 2019-09-07
 */
public interface PanoplanBuildPlanMapper extends BaseMapper<PanoplanBuildPlan> {

    int deleteByPrimaryKey(String id);

    int insertRecord(PanoplanBuildPlan record);

    int insertSelective(PanoplanBuildPlan record);

    PanoplanBuildPlan selectByPrimaryKey(@Param("id")String id,@Param("isDeleted")String isDeleted);

    int updateByPrimaryKeySelective(PanoplanBuildPlan record);

    int updateByPrimaryKey(PanoplanBuildPlan record);

    //楼栋计划数据对接接口
    void syncPanoplanBuildPlan(PanoplanBuildPlan panoplanBuildPlan);

    //全量数据对接接口
    //void syncAllData(List<PanoplanBuildPlan> entityList);

    /**
     * @param projectFid 分期id
     * @param versionTypes 版本类型
     * @param isDel 是否删除
     * @return PanoplanBuildPlan
     */
    PanoplanBuildPlan selectNewestByFid(@Param("fid") String projectFid,@Param("versionTypes") List<String> versionTypes, @Param("isDel") int isDel);
    
}
